﻿using IMark.DAO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace IMark.UC
{
    public partial class SlideDefault : System.Web.UI.UserControl
    {
        public List<SLIDESHOW> ltSanPham = null;
        public List<BAI_VIET> ltBaiViet = null;
        protected void Page_Load(object sender, EventArgs e)
        {
            if(!IsPostBack)
            {
                ltSanPham = SlideShowModels.GetAll().Take(5).ToList();
                ltBaiViet = BaiVietModels.GetAll().Take(5).ToList();
            }
        }
    }
}